<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script src='../vue.global.js'></script>
</head>

<body>
    <div id='app'>
        <!-- vif 渲染条件不成立时 直接不渲染 -->
        <h1 v-if="awesome">Vue is awesome!</h1>

        <!-- vshow 渲染条件不成立时 display设置为none -->
        <h1 v-show="awesome">Oh yes 😢</h1>
    </div>

    <script>
        const app = Vue.createApp({
            data() {
                return {
                    awesome: 0,
                }
            }
        })
        const vm = app.mount('#app')
    </script>
</body>

</html>